<?php

namespace LowCode\UI;

use LowCode\Support\JsExp;

/**
 *
 */
class Box extends Node
{
    public function __construct(mixed $children = null)
    {
        parent::__construct("WBox");
        $this->children($children);
    }

    /**
     * @param bool|JsExp $bool
     * @return $this
     */
    public function inverted(bool|JsExp $bool): static
    {
        return $this->prop("inverted", $bool);
    }
}
